package code

import "fmt"

func Operator() {
	var a int = 21
	var b int = 10
	var c int
	c = a + b
	fmt.Printf("相加: %d\n", c)

	c = a - b
	fmt.Printf("相减: %d\n", c)

	c = a * b
	fmt.Printf("相乘: %d\n", c)

	div := float64(a) / float64(b)
	fmt.Printf("相除: %.2f\n", div)

	c = a % b
	fmt.Printf("求余: %d\n", c)
}
